package blt.app_core.api.journey;

import java.util.List;

import blt.app_core.api.base.IBaseApi;
import blt.app_core.api.journey.bean.Travel;
import blt.app_core.api.journey.bean.TravelDetail;

/**
 * Created by xgp on 2017/6/22.
 */

public interface JourneyApi extends IBaseApi {


    String onComplaintSuccess="onComplaintSuccess";

    /**
     *
     * @param page
     * @param size
     * @param isInvoice true代表发票行程
     * @param  isRefund true 代表退款明细
     * @return
     */
    Travel getTravel(int page, int size,boolean isInvoice,boolean isRefund);

    String onTravel = "onTravel";
    String onRefundTravel = "onRefundTravel";

    TravelDetail getDetail(int id);

    String onDetail = "onDetail";


    /**
     * 抢红包
     *
     * @param travelOrderId 行程id
     */
    void snatchRedpacket(int travelOrderId);
    String onRedPackage="onRedPackage";


    void addComplaint(String url,int travelOrderId, String appealDetail,
                      String pic1, String pic2, String pic3,
                      String contact, String phone, String reason);


    /**
     * 申诉列表
     * @param page
     * @param size
     */
    void getAppeal(int page, int size);
    String onComplaint="onComplaint";


    void getAppealDetail(int appealId);
}
